<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <link rel="stylesheet" href="assets/mui/css/mui.min.css">
        <link rel="stylesheet" href="assets/fontAwesome/css/font-awesome.min.css">
        <link rel="stylesheet" href="css/base.css">
        <link rel="stylesheet" href="css/category.css">
        <script src="assets/mui/js/mui.min.js"></script>
        <script src="assets/zepto/zepto.min.js"></script>
        
        <script src="js/category.js"></script>
       
    <title>Document</title>
</head>
<body>
    <ul>
       
    </ul>
    <!-- art    template(id,对象) -->
    <!-- 1. 引入文件 -->
    <!-- 2.art模板 -->
    <script type="text/template" id="c">
     <% for (var i = 0 ,i < bb.length, i++ ) { %>
           <li> <%=bb[i]%> </li>
     <%}%>
    </script>
    <script>
      var  arr =["aa","bb","cc","dd"];
      
      var x =template("c",{bb:arr});
      console.log(x);
      $("ul").html(x);
      
    </script>
    <!-- 3.art方法 -->
    <!-- 4.渲染数据 -->
</body>
</html>
<script src="assets/artTemplate/template-native.js"></script>